From 56a53ee1c11b778e79e2ad7ee7e309e9917fd13c Mon Sep 17 00:00:00 2001 From: Ross Lagerwall Date: Wed, 11 Oct 2017 17:49:48 +0200 Subject: [PATCH] x86: fix XEN_DMOP_remote_shutdown return value Return 0 to indicate success rather than whatever rc was previously set to (-EINVAL). Signed-off-by: Ross Lagerwall Reviewed-by: Jan Beulich --- xen/arch/x86/hvm/dm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/hvm/dm.c b/xen/arch/x86/hvm/dm.c index 82addeae5f..32ade9541d 100644 --- a/xen/arch/x86/hvm/dm.c +++ b/xen/arch/x86/hvm/dm.c @@ -636,6 +636,7 @@ static int dm_op(const struct dmop_args *op_args) &op.u.remote_shutdown; domain_shutdown(d, data->reason); + rc = 0; break; } -- 2.30.2